
from scipy.io import wavfile
import noisereduce as nr

import pybind11
print(pybind11.get_include())


# load data
rate, data = wavfile.read("./mywav.wav")

# Check the data type
print(f"Data type: {data.dtype}")

# perform noise reduction
reduced_noise = nr.reduce_noise(y=data, sr=rate)
wavfile.write("mywav_reduced_noise.wav", rate, reduced_noise)

